package com.java.java8.util.functioninterfacedemo;

/**
 * @author liyanhao
 * @Date 2023-03-26 18:46
 */
@FunctionalInterface
public interface Consumer<T> {
    void accept(T t);
}
class TestConsumer{
    public static void main(String[] args) {
        Consumer consumer = (i)->{ System.out.println(i);};
        consumer.accept(1);
    }
}
